﻿<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->

<head>
    <meta charset="UTF-8">
    <title>家校互通 - 教职工列表</title>
    <script type="text/javascript" src="../../../assets/inc/common-meta.inc"></script>
    <script type="text/javascript" src="../../../assets/inc/common-css.inc"></script>
    <link href="../../../assets/plugins/select2/css/select2.min.css" rel="stylesheet" type="text/css" />
    <link href="../../../assets/plugins/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="../../../assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
    <style>
		.page-quick-sidebar-wrapper{
			top:50px;
			bottom: 30px;
			width: 400px;
		  	right: -400px;
		  	padding:0px;
		  	color:#000;
			background: #fff;
			border: 2px solid #C1C1C1;
			border-radius:6px 0 0 6px;
			border-right-width: 0px;
			box-shadow: 5px 5px rgba(102, 102, 102, 0.1);
		}
		
		.portlet.box {
		    border: none;
		}
		
		.portlet.box > .portlet-title {
		    background-color: #525e64;
		    border-radius:6px 0px 0px 0px;
		}
		
		.fa{
			margin-left: 15px;
		}
        .none {
            display:none;
        }
	</style>
</head>
<!-- END HEAD -->

<body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
    <!-- page-top.html -->
    <div class="page-container">
        <!-- page-left.html -->
        <div class="page-content-wrapper">
            <div class="page-content" id="app">
                <div class="page-bar">
                    <ul class="page-breadcrumb">
                        <li><a href="#">主页</a> <i class="fa fa-angle-right"></i></li>
                        <li><a href="#">学籍管理</a> <i class="fa fa-angle-right"></i></li>
                        <li><span>班级列表</span></li>
                    </ul>
                    <!-- 
                    <div class="page-toolbar">
						<a href="../resource/list.html" class="pull-right btn">资源</a>
                        <a href="../user/list.html" class="pull-right btn">用户</a>
                    </div>
                     -->
                </div>
                <div class="page-title"></div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="portlet box default" style="border:1px solid #e7ecf1;">
                            <div class="portlet-title">
                                <div class="caption">
                                    <i class="fa fa-gift"></i>班级列表
                                </div>
                                <div class="actions">
                                    <a href="edit.html" class="btn blue btn-sm"> <i class="fa fa-plus"></i> 新增</a>
                                    <a href="javascript:;" id="fileupload" class="btn blue btn-sm"> <i class="fa fa-file-excel-o"></i> 导入</a>
                                    <a href="javascript:;" id="filedownload" class="btn blue btn-sm"> <i class="fa fa-file-excel-o"></i> 下载模板</a>
                                </div>
                            </div>
                            <div class="portlet-body form">
                                <form class="form-horizontal">
                                    <div class="form-body">
                                        <div class="row">
                                            <div class="col-md-4">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4">入学年份</label>
                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control" v-model="condition.search_LIKE_groupName" placeholder="请输入入学年份...">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-4">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4">班级类别</label>
                                                    <div class="col-md-8">
	                                                   <select class="form-control" v-model="category">
	                                                       <option value ="" selected = "selected">全部</option>
	                                                       <option value="S">小学</option>
	                                                       <option value="M">初中</option>
	                                                       <option value="H">高中</option>
	                                                   </select>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-actions">
                                        <div class="row">
                                            <div class="col-md-12 ">
                                                <div class="pull-right">
                                                    <button type="button" class="btn btn-sm blue" @click="submit()">
                                                        <i class="fa fa-search"></i> 查询
                                                    </button>
                                                    <button type="button" class="btn btn-sm default" @click="reset()">
                                                        <i class="fa fa-refresh"></i>重置
                                                    </button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" >
                    <div class="col-md-12" >
                        <div class="dataTables_wrapper">
                            <div class="table-scrollable" >
                                <table class="table table-striped table-bordered table-hover table-header-fixed " id="sample_1" role="grid" aria-describedby="sample_1_info">
                                    <thead>
                                        <tr role="row" >
                                            <th>操作</th>
                                            <th aria-controls="sample_1" class="center col-md-2">班级名称</th>
                                            <th aria-controls="sample_1" class="center col-md-2">入学年份</th>
                                            <th aria-controls="sample_1" class="center col-md-2">类别</th>
                                            <th aria-controls="sample_1" class="center col-md-2">班级别名</th>
                                            <th aria-controls="sample_1" class="center col-md-3">创建时间</th>
                                        </tr> 
                                    </thead>
                                    <tbody >
                                        <tr class="gradeX odd" role="row" v-for="item in items" v-cloak>
                                            <td>
                                                <a href="edit.html?id={{item.id}}" class="glyphicon glyphicon-edit" title="编辑"></a>
                                                <a href="javascript:;" @click="del(item)" class="glyphicon glyphicon-remove" title="删除"></a>
                                            </td>
                                            <td>{{item.name}}</td>
                                            <td>{{item.grade}}</td>
                                            <td>{{item.category}}</td>
                                            <td>{{item.alias}}</td>
                                            <td>{{item.createTime}}</td>
                                        </tr>
                                    </tbody>
                                    <tfoot>
                                        <tr>
                                            <td colspan="7">
                                                <div class="row" v-cloak>
                                                    <div class="col-md-5 col-sm-5">
                                                        <div class="dataTables_info" id="sample_1_info" role="status" aria-live="polite">显示 {{start}} 至 {{end}} 共 {{totalRecords}} 条</div>
                                                    </div>
                                                    <div class="col-md-7 col-sm-7">
                                                        <div class="dataTables_paginate paging_bootstrap_number" id="sample_1_paginate">
                                                            <ul class="pagination" style="visibility: visible;">
                                                                <li v-bind:class="{ 'disabled': disableFirst}" class="prev">
                                                                    <a href="javascript:void(0);" v-on:click="firstClick()" title="First"><i class="fa fa-angle-double-left"></i></a>
                                                                </li>
                                                                <li v-bind:class="{ 'disabled': disableFirst}" class="prev">
                                                                    <a href="javascript:void(0);" v-on:click="prevClick()" title="Prev"><i class="fa fa-angle-left"></i></a>
                                                                </li>
                                                                <li v-for="index in indexs" v-bind:class="{'active': curPage == index}"><a v-on:click="btnClick(index)" >{{ index }}</a></li>
                                                                <li v-bind:class="{ 'disabled':disableLast}" class="next">
                                                                    <a href="javascript:void(0);" v-on:click="nextClick()" title="Next"><i class="fa fa-angle-right"></i></a>
                                                                </li>
                                                                <li v-bind:class="{ 'disabled':disableLast}" class="next">
                                                                    <a href="javascript:void(0);" v-on:click="lastClick()" title="Last"><i class="fa fa-angle-double-right"></i></a>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- page-bottom.html -->
    <script type="text/javascript" src="../../../assets/inc/common-js.inc"></script>
    <script type="text/javascript" src="../../../assets/plugins/select2/js/select2.full.min.js"></script>
    <script src="../../../assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
    <script src="../../../assets/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../data.js"></script>
    <script type="text/javascript" src="script/list.js"></script>
    <script type="text/javascript">
	    $('.date-picker').datepicker({
			format: 'yyyy-mm-dd',
			keyboardNavigation: true,
			language: 'zh-CN',
	        autoclose: true,
	        todayHighlight:true
	    });
	</script>
</body>

</html>
